package test.hxy.mongoSchoolSimple.dao;

import org.springframework.data.mongodb.repository.MongoRepository;
import test.hxy.mongoSchoolSimple.model.Teacher;

import java.util.List;

public interface TeacherDao extends MongoRepository<Teacher, Object> {
    List<Teacher> findAll();
    List<Teacher> findByTeacherNameContains(String teacherName);
    Teacher findByTeacherIdEquals(String teacherId);
    List<Teacher> findByCampusIdEquals(String campusId);
}
